using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TDFlowLibrary;
namespace Taoist
{
    public class gameflowfun : gameflow_Decision
    {
        public int OnUpdateRet(gameflow flow, SceneItem Item, int nIndex, int nRet)
        {
            if (Item.strName == "mainmenu")
            {
                if (nRet == 0)
                {
                    flow.popstate();
                    flow.pushstate(1);
                    return 1;
                    //m_LevelSystem.LoadNextLevel(GameGlobalInfo.m_Game.Content);
                    //setstate(pgmstate.state_level);
                    //m_mainMenu.command = mainmenu_command.mainmenu_normal;
                }
                else if (((MainMenu)Item.Scene).command == mainmenu_command.mainmenu_exit)
                {
                    return 0;
                }
            }
            return 1;
        }
    }
}
